<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>添加/编辑物流公司 - Powered By ${systemConfig.systemName}</title>
<meta name="Author" content="JFinalShop Team" />
<meta name="Copyright" content="JFinalShop" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<% include("/common/include.html"){}%>
<link href="${base}/template/admin/css/input.css" rel="stylesheet" type="text/css" />
<%
var isAdd = false;
var isEdit = false;
if(isEmpty(deliveryCorp.id)){
	isAdd = true;
}else{
	isEdit = true;
}%>
</head>
<body class="input">
	<div class="body">
		<div class="inputBar">
			<h1><span class="icon">&nbsp;</span><%if(isAdd){%>添加物流公司<%}else{%>编辑物流公司<%}%></h1>
		</div>
		<form id="inputForm" class="validate" action="<%if (isAdd){%>${base}/deliveryCorp/save<%}else{%>${base}/deliveryCorp/update<%}%>" method="post">
			<input type="hidden" name="deliveryCorp.id" value="${deliveryCorp.id!}" />
			<table class="inputTable tabContent">
				<tr>
					<th>
						物流公司名称:
					</th>
					<td>
						<input type="text" name="deliveryCorp.name" <%if(isAdd){%>class="formText {required: true, remote: '${base}/deliveryCorp/checkName?${deliveryCorp.name!}', messages: {remote: '此公司名称已存在!'}}" <%}%> value="${deliveryCorp.name!}" />
						<label class="requireField">*</label>
					</td>
				</tr>
				<tr>
					<th>
						物流公司网址:
					</th>
					<td>
						<input type="text" name="deliveryCorp.url" class="formText {url: true}" value="${deliveryCorp.url!}" title="必须以http://开头" />
					</td>
				</tr>
				<tr>
					<th>
						排序:
					</th>
					<td>
						<input type="text" name="deliveryCorp.orderList" class="formText {digits: true, required: true}" value="${deliveryCorp.orderList!50}" title="只允许输入零或正整数" />
						<label class="requireField">*</label>
					</td>
				</tr>
			</table>
			<div class="buttonArea">
				<input type="submit" class="formButton" value="确  定" hidefocus="true" />&nbsp;&nbsp;&nbsp;&nbsp;
				<input type="button" class="formButton" onclick="window.history.back(); return false;" value="返  回" hidefocus="true" />
			</div>
		</form>
	</div>
</body>
</html>